<?php

class Other_m extends CI_Model {

    function __Construct() {
        parent::__Construct();
    }

    function all_other() {
        $this->db->select('*');
        $this->db->from('post');
        $this->db->join('user', 'post.userId=user.id');

        return $this->db->get();
    }

    function delete_other($data) {
        $this->db->delete('post', $data);
    }

}

?>